home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / AIncludes / PrEqu.a < prev    next >
Encoding:
Text File  |  1989-10-13  |  5.6 KB  |  149 lines  |  [TEXT/MPS ]

  1. ; Version: 1.03
  2. ; Created: Tuesday, August 2, 1988 at 9:38:57 PM
  3. ;
  4. ; File: PrEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1988
  8. ; All Rights Reserved
  9. ;
  10. ;_______________________________________________________________________
  11. ; Printing Equates -- This file defines the public high-level equates for the
  12. ; Macintosh printing software. Record stuctures may have additional private
  13. ; equates which are defined by and reserved for use by Apple Computer, Inc.
  14. ;_______________________________________________________________________
  15.  
  16.  
  17. ; No external refs required
  18.  
  19. ; Printing Code Contsants
  20.  
  21. ; These are the PrDrvr constants.
  22.  
  23. iPrDrvrID        EQU         2                        ; Driver's ResID
  24. iPrDrvrRef        EQU         $FFFD                    ; Driver's RefNum = NOT ResID
  25. iPrDrvrDev        EQU         $FD00                    ; Driver's QD Dev num = RefNum in Hi Byte, variant in lo
  26. iPrBitsCtl        EQU         4                        ; The Bitmap Print Proc's ctl number
  27. lScreenBits     EQU         $00000000                ; The Bitmap Print Proc's Screen Bitmap param
  28. lPaintBits        EQU         $00000001                ; The Bitmap Print Proc's Paint [sq pix] param
  29. iPrIOCtl        EQU         5                        ; The Raw Byte IO Proc's ctl number
  30. iPrEvtCtl        EQU         6                        ; The PrEvent Proc's ctl number
  31. lPrEvtAll        EQU         $0002FFFD                ; The PrEvent Proc's CParam for the entire screen
  32. lPrEvtTop        EQU         $0001FFFD                ; The PrEvent Proc's CParam for the top folder
  33. iPrDevCtl        EQU         7                        ; The PrDevCtl Proc's ctl number
  34. iPrReset        EQU         1                        ; The PrDevCtl Proc's CParam for reset
  35. iPrPageEnd        EQU         2                        ; The PrDevCtl Proc's CParam for end page
  36. iPrLineFeed     EQU         3                        ; The PrDevCtl Proc's CParam for paper advance
  37. iFMgrCtl        EQU         8                        ; The FMgr's Tail-hook ctl call
  38. iFMgrStat        EQU         8                        ; The FMgr's Pre-hook status call
  39.  
  40. ; Printing data structures
  41.  
  42. ; Print Info data structure TPrInfo
  43. ; The parameters needed for page composition.
  44.  
  45. iDev            EQU         0                        ; Font mgr/QuickDraw device code [integer]
  46. rPage            EQU         6                        ; printable area device coord. [rect]
  47.  
  48. ; Printer Style data structure
  49. ; The printer configuration and usage information.
  50.  
  51. iPageV            EQU         2                        ; V paper size in units of 1/iPrPgFract [word]
  52. iPageH            EQU         4                        ; H paper size. [word]
  53. feed            EQU         7                        ; paper feeder type [byte]
  54.  
  55. ; Print eXtra Info data structure
  56. ; The print time eXtra information.
  57.  
  58. iDevBytes        EQU         6                        ; Size for allocation. [word]
  59.  
  60.  
  61. ; Print Job data structure
  62. ; Print "form" for a single print request.
  63.  
  64. iFstPage        EQU         0                        ; Page Range [word]
  65. iLstPage        EQU         2                        ; [word]
  66. iCopies         EQU         4                        ; # copies [word]
  67. bJDocLoop        EQU         6                        ; Draft quality print flag [byte]
  68. fFromApp        EQU         7                        ; Printing from an App (not PrApp) flag [byte]
  69. pIdleProc        EQU         8                        ; Idle Proc [pointer]
  70. pFileName        EQU         12                        ; Spool File Name: NIL for default [pointer]
  71. iFileVol        EQU         16                        ; Spool File vol [word]
  72. bFileVers        EQU         18                        ; Spool File version [byte]
  73. iPrJobSize        EQU         20                        ; The PrJob size.[20]
  74.  
  75.  
  76. ; The universal 120 byte printing record
  77.  
  78. iPrVersion        EQU         0                        ; Printing software version
  79. prInfo            EQU         2                        ; the PrInfo data associated with the current style.
  80. rPaper            EQU         16                        ; The paper rectangle [offset from rPage].
  81. prStl            EQU         24                        ; This print request's style.
  82. prInfoPT        EQU         32                        ; Print Time Imaging metrics
  83. prXInfo         EQU         46                        ; Print-time (expanded) Print info record.
  84. prJob            EQU         62                        ; The Print Job request
  85. iPrintSize        EQU         120                     ; The Print record size.[120]
  86.  
  87. ; Print Port structure
  88. ; A graf port, its procs, plus some extra.
  89.  
  90. gPort            EQU         0                        ; The Printer's graf port
  91. iPrPortSize     EQU         178                     ; The PrPort size.[178]
  92.  
  93.  
  94. ; Print Status data structure
  95.  
  96. iTotPages        EQU         0                        ; Total pages in Print File [word]
  97. iCurPage        EQU         2                        ; Current page number [word]
  98. iTotCopies        EQU         4                        ; Total copies requested [word]
  99. iCurCopy        EQU         6                        ; Current copy number [word]
  100. iTotBands        EQU         8                        ; Total bands per page [word]
  101. iCurBand        EQU         10                        ; Current band number [word]
  102. fPgDirty        EQU         12                        ; current page has been written to? [byte]
  103. fImaging        EQU         13                        ; in band's DrawPic call? [byte]
  104. hPrint            EQU         14                        ; active Printer record [handle]
  105. pPrPort         EQU         18                        ; active PrPort [pointer]
  106. iPrStatSize     EQU         26                        ; The PrStatus size[26 bytes]
  107.  
  108.  
  109. ; Less common print code stuff
  110.  
  111. wDev            EQU         0                        ; the drvr #, hi byte = refnum, lo byte = variant [word]
  112.  
  113.  
  114. ; These are the definitions for the Print code
  115.  
  116. iPrAbort        EQU         128                     ; Abort
  117. iPrRelease        EQU         3                        ; Current version number of the code.
  118. iPrPgFract        EQU         120                     ; Paper sizes are in 120ths of an inch
  119.  
  120. ; ! ! ! W A R N I N G ! ! !
  121. ; The following PrintErr parameter location should not be accessed directly.
  122. ; To get or set printer errors call the procedures PrError and PrSetError
  123. ; This will insure compatibility with future Print code releases.
  124. ; This parameter is furnished here simply for backward compatibility.
  125. ;PrintErr EQU $944 ; print error global location
  126.  
  127.  
  128. ; Printing Methods -- The DocLoop types
  129.  
  130. bDraftLoop        EQU         0                        ; draft printing
  131. bSpoolLoop        EQU         1                        ; spooled printing
  132. bUser1Loop        EQU         2
  133. bUser2Loop        EQU         3
  134.  
  135. ; Various Resource Types & ID's
  136.  
  137. lPStrType        EQU         $53545220                ; "STR ": Res type for the Pr Rsrc file name
  138. iPStrRFil        EQU         $E000                    ; Str -8192 is in SysRes & names the current printer
  139. lPrintType        EQU         $50524543                ; "PREC": Res type for the hPrint records
  140. iPrintDef        EQU         0                        ; Default hPrint
  141. iPrintLst        EQU         1                        ; Last used hPrint
  142. iPrintDrvr        EQU         2                        ; .Print's parameter record; not a Print rec
  143. lPfType         EQU         $5046494C                ; "PFIL"
  144. lPfSig            EQU         $50535953                ; "PSYS"
  145. iPfIcon         EQU         140                     ;
  146. lPrType         EQU         $4150504C                ; "APPL"
  147. lPrSig            EQU         $50535953                ; "PSYS"
  148. iPrIcon         EQU         138                     ;
  149.